import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'memberstate'
})
export class MemberstatePipe implements PipeTransform {
  result='';
  transform(value: unknown, ...args: unknown[]): unknown {
    switch (value){
      case "NORMAL":
        this.result='正常';
        break;
      case "LOCK":
        this.result='锁定';
        break;
      case "DISABLED":
        this.result='禁用';
        break;
    }


    return this.result;
  }

}
